import { MessageBox } from "element-ui"

export const myconfirm = function(msg, ok, reject = () => {}) {
    MessageBox.confirm(msg, "提示", {
        confirmButtonText: '确定',
        cancelButtonText: '取消'
    }).then(ok)
    .catch(reject)
}